#ifndef DEBUG_FUNC
#define DEBUG_FUNC

#include <iostream>
#include <vector>
#include <string>
#include "../datamanager/Data.h"
#include "../const/const.h"

void printSearchResult(search_result res, int sys = 0){
	for(int i = 0; i < res.size(); ++i){
		for(int j = 0; j < res[i].size(); ++j){
			if(sys == 1 && j == N_COLUMN_RANK)
				std::cout << Data::intUnzip(&(res[i][j][0]), MAX_COLUMN_RANK) << " | ";
			else if(sys == 1 && j == N_COLUMN_LENGTH)
				std::cout << Data::intUnzip(&(res[i][j][0]), MAX_COLUMN_LENGTH) << " | ";
			else
				std::cout << res[i][j].c_str() << " | ";
		}
		std::cout << std::endl;
	}
}

#endif // DEBUG_FUNC
